//
//  ZHealthBottomTableViewCell.m
//  DoctorFAQs
//
//  Created by zjq on 17/2/21.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "ZHealthBottomTableViewCell.h"
@interface ZHealthBottomTableViewCell () {
    UIView * _garyView;
}
@end


@implementation ZHealthBottomTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    if (self) {
        [self initlizeInterface];
    }
    return self;
}
- (void)initlizeInterface {
    _leftImageView = [[UIImageView alloc] init];
    _leftImageView.image = [UIImage imageNamed:@"Reference_picture"];
    _rightImageView = [[UIImageView alloc] init];
    _styleLabel = [[UILabel alloc] init];
    _styleLabel.textAlignment = NSTextAlignmentLeft;
    _styleLabel.font = [UIFont systemFontOfSize:16];
    _numberLabel = [[UILabel alloc] init];
    _numberLabel.textAlignment = NSTextAlignmentLeft;
    _numberLabel.font = [UIFont systemFontOfSize:14];
    _numberLabel.textColor = KHGaryColor;
    _garyView = [[UIView alloc] init];
    _garyView.backgroundColor = MYGRAYCOLOR;
    [self.contentView addSubview:_leftImageView];
    [self.contentView addSubview:_rightImageView];
    [self.contentView addSubview:_styleLabel];
    [self.contentView addSubview:_numberLabel];
    [self.contentView addSubview:_garyView];
    [_leftImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(10*ysIZE);
        make.top.equalTo(self.contentView).offset(10*ysIZE);
        make.height.width.offset(70*xsIZE);
    }];
    [_styleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.leftImageView.mas_right).offset(10*xsIZE);
        make.top.equalTo(self.contentView).offset(25*xsIZE);
        make.width.offset(120*xsIZE);
        make.height.offset(16*ysIZE);
    }];
    [_numberLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_styleLabel);
        make.top.equalTo(_styleLabel.mas_bottom).offset(12*ysIZE);
        make.width.offset(110*xsIZE);
        make.height.offset(14*ysIZE);
    }];
    [_garyView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.equalTo(self.contentView);
        make.height.offset(1.5*ysIZE);
    }];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
